# grep color options config
# source /etc/profile.d/grep-color.sh 

grep -qsi "^enable_color.*true" /etc/grep-color.conf
if [ $? -eq 0 ]; then
    alias grep='grep --color=auto' 2>/dev/null
    alias fgrep='fgrep --color=auto' 2>/dev/null
    alias egrep='egrep --color=auto' 2>/dev/null
else
    alias grep='grep' 2>/dev/null
    alias fgrep='fgrep' 2>/dev/null
    alias egrep='egrep' 2>/dev/null
fi
